package com.xr.pfmWisdom;

import com.xr.common.CommUtil;
import com.xr.common.DBTools;
import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.DBStatement;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;

/**
 * inputDataSourceViewModel
 */
public class inputDataSourceViewModel extends DefaultViewModel {
  public void save(ParameterSet parameters, ParameterSet outParameters)
      throws Exception {
	  DBStatement dbs = new DBStatement();
		Dataset ds = getDataset("datasetCheckItem");
		CommUtil.dbsUpdateData(dbs, ds, "pjx_checkitem", "CHECKITEM_ID");
		dbs.close();
  }
  public void finish(ParameterSet parameters, ParameterSet outParameters)
  throws Exception {
     DBStatement dbs = new DBStatement();
		Dataset dsC = getDataset("datasetCheck");
		Dataset ds = getDataset("datasetCheckItem");
		CommUtil.dbsUpdateData(dbs, ds, "pjx_checkitem", "CHECKITEM_ID");
		
		DBTools.setTodoFinish("100", dsC.getString("PJX_CHECK_ID"));
		
		 
		dbs.close();
		
}
}
